﻿#include <iostream>

using namespace std;

int main()
{
	int n;
	cin >> n;
	for (int i = 0; i < 2 * n - 1; i++) {
		if (i < n - 1) {
			for (int i_space = 0; i_space < n - i - 1; i_space++) {
				cout << " ";
			}
			for (int i_star = 0; i_star < 2 * i + 1; i_star++) {
				cout << "*";
			}
		}
		else {
			for (int i_space = 0; i_space < i - n + 1; i_space++) {
				cout << " ";
			}
			for (int i_star = 0; i_star < 4 * n - 2 * i - 3; i_star++) {
				cout << "*";
			}
		}
		cout << endl;
	}
}
